﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TotalNews.Helpers.PaginatedList<TotalNews.Models.tbl_Item>>" %>

<%@ Import Namespace="TotalNews.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    News
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Theme" runat="server">
 <link href="/Content/files/<%= Themes.Instace.GetTheme((int) ViewData["catId"]).Name %>.css" rel="stylesheet" type="text/css" />
 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" runat="server">
    <div id="ja-main" style="width: 100%;">
        <div class="inner clearfix">
            <div id="ja-contentwrap" class="">
                <div id="ja-content" class="column" style="width: 100%;">
                    <div id="ja-current-content" class="column" style="width: 100%;">
                        <div class="ja-content-main clearfix">
                            <h1 class="componentheading">
                                Xỗi hạ</h1>
                            <div class="blog clearfix">
                                <div class="contentdescription">
                                    <p>
                                        Magna velit urna Aenean laoreet tellus orci Suspendisse Integer lacus urna. Vivamus
                                        mus vitae Integer Nulla turpis tortor mauris montes sem et. Orci convallis vitae
                                        mattis Sed Morbi porttitor justo convallis urna feugiat.
                                    </p>
                                </div>
                                <%-- SingleNews Partial--%>
                                <%Html.RenderPartial("SingleNewsPartial");%>
                                <%-- SingleItem Partial--%>
                                <%--AllNews Partial--%>
                                <%Html.RenderPartial("AllNewsPartial");%>
                                <%--AllNews Partial--%>
                                <p class="counter">
                                    <%for (int page = 0; page <= Model.TotalPages; page++)
                                      {
                                          if (page == Model.PageIndex)
                                          {%>
                                    <span>Page
                                        <%=page.ToString() %>
                                        of
                                        <%=Model.TotalPages.ToString() %></span>
                                    <%}
                                      } %>
                                </p>
                                <div class="pagination">
                                    <ul class="pagination">
                                        <li><span>«</span></li>
                                        <li>&nbsp;<span><%= Html.RouteLink("Start",
                                              "paginnatedItem",
                                                             new { page = 0 })%></span>&nbsp;</li>
                                        <% if (Model.HasPreviousPage)
                                           { %>
                                        <li><span>
                                            <%= Html.RouteLink("Prev",
                                              "paginnatedItem",
                                                             new { page = (Model.PageIndex - 1) })%>
                                        </span></li>
                                        <% } %>
                                        <%for (int page = 0; page <= Model.TotalPages; page++)
                                          {
                                              if (page == Model.PageIndex)
                                              { %>
                                        <li>&nbsp;<span><%=page.ToString()%></span>&nbsp;</li>
                                        <% }
                                              else
                                              { %>
                                        <li>&nbsp;<strong>
                                            <%= Html.RouteLink(page.ToString(),
                                              "paginnatedItem",
                                                             new { page = page.ToString() })%></strong>&nbsp;</li>
                                        <% }
                                          }   %>
                                        <% if (Model.HasNextPage)
                                           { %>
                                        <li><span>
                                            <%= Html.RouteLink("Next",
                                              "paginnatedItem",
                                                             new { page = (Model.PageIndex + 1) })%>
                                        </span></li>
                                        <li>&nbsp;<strong><%= Html.RouteLink("End",
                                              "paginnatedItem",
                                                             new { page = Model.TotalPages })%></strong>&nbsp;</li>
                                        <li><span>»</span></li>
                                        <% } %>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContent" runat="server">
 <%Html.RenderPartial("RightContent/RightDetails"); %>
</asp:Content>
